<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>数组</title>
		<script type="text/javascript">
			var  ar=new Array("afa","afaf","afa");
			var  bb=["小狗","小猫","小猪"];
			document.write(ar);
			document.write(bb);
			bb[10]="熊猫";
			document.write(bb);
			for(var i=0;i<ar.length;i++)
			{
				document.write(i+"是"+ar[i]);
			}
			for(var i in bb)
			{
				document.write(i+"是"+bb[i],"<br/>");
			}
			bb.push("狼");
			alert(bb);
			bb.pop();
			document.write(bb);
			var cc=[1,25,432];
		/* var f=cc.map(function(2));
		for(var i in f)
		{
			document.write(i+"是"+f[i],"<br/>");
		} */
		</script>
	</head>
	<body>
	</body>
</html>
